package org.example.test915.entity.bo;

import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableLogic;
import com.baomidou.mybatisplus.extension.handlers.JacksonTypeHandler;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import javax.validation.Valid;
import java.time.LocalDateTime;

@Data
public class UserInfoParam {

    @ApiModelProperty("id")
    private Long id;

    @Valid
    @ApiModelProperty("名称")
    private String username;

    @TableField(typeHandler = JacksonTypeHandler.class)
    @ApiModelProperty("分析结果")
    private AnalysisBO analysis;

    @ApiModelProperty("开始时间")
    private LocalDateTime startTime;

    @ApiModelProperty("结束时间")
    private LocalDateTime endTime;

    @ApiModelProperty("更新时间")
    private LocalDateTime updateTime;

    @ApiModelProperty("删除时间")
    @TableLogic(value = "NULL", delval = "NOW()")
    private LocalDateTime deleteTime;
}
